<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=Big5">
        <title></title>
    </head>
    <body>
        <?php
            require_once dirname(__FILE__) . "/../PUB/class/tools/ServerFunction.class.php";
            /*require_once "/var/www/PUB/class/Constant.class.php";
            echo "1->" . substr(__FILE__,strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT)+1,strpos(__FILE__,WEB_ROOT,strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT))-strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT)) . "<br/>";
            echo "2->" . substr(__FILE__,strpos(__FILE__,WEB_ROOT)) . "<br/>";
            echo "3->" . __FILE__ . "<br/>";
            echo "4->" . strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT)+1 . "<br/>";
            echo strpos(__FILE__,"/",strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT)+1) - (strpos(__FILE__,WEB_ROOT)+strlen(WEB_ROOT)+1) . "<br/>";
            echo md5(uniqid(rand(),true))."<br/>";
            echo strlen(md5(uniqid(rand(),true)));*/

            //echo date("Y-m-d", date("w")==1 ? strtotime("now") :strtotime("last Monday"));

//            require_once dirname(__FILE__) . "/../PUB/class/db/DAB.class.php";
//
//            $dab=new DAB();
//
//        $dab->connectDB();

//echo ServerFunction::getCurrentPath();
//echo "</br>";
//echo ServerFunction::getWebRoot();
//echo "</br>";
//echo realpath(__FILE__);
//        echo $_SERVER['PHP_SELF'];
//        $db_ini=p

//        echo md5(uniqid());

        echo __FILE__;
        echo "<br/>";
        echo __DIR__;
        echo "<br/>";
        echo ServerFunction::getWebRoot();
        echo "<br/>";
        echo ServerFunction::getMainPath();

        //print_r($db_ini);
        ?>
    </body>
</html>
